import Layout from "@/layout";
const datas2 = [
  {
    path: "/notice",
    component: Layout,
    redirect: "/notice/index",
    meta: {
      title: "综合管理",
      icon: "nested",
    },
    children: [
      {
        path: "index",
        name: "Index",
        component: () => import("@/views/form/index"),
        meta: { title: "团队管理", icon: "form" },
      },
      {
        path: "/composite",
        name: "Composite",
        component: () => import("@/views/composite/index"),
        meta: { title: "通知管理", icon: "form" },
      },
      {
        path: "/purchase",
        meta: { title: "采购需求", icon: "form" },
        component: () => import("@/views/purchase/purchase"),
        children: [
          {
            path: "index",
            name: "index",
            component: () => import("@/views/purchase/index"),
            meta: { title: "采购需求", icon: "form" },
          },
          {
            path: "/purchase/add",
            component: () => import("@/views/purchase/module/addBuy.vue"),
            //不要meta可以保持有下拉
          },
          {
            path: "/purchase/lookBuy",
            component: () => import("@/views/purchase/module/lookBuy.vue"),
          },
          {
            path: "/purchase/editBuy",
            component: () => import("@/views/purchase/module/editBuy.vue"),
          }
        ]
      },
    ],
  },
  { path: "*", redirect: "/404", hidden: true },
];

export { datas2 };
